package com.fdhwws.web.dao;

import com.fdhwws.web.domain.ChatRoom;

import java.util.List;

public interface ChatRoomDao extends BaseDao<ChatRoom> {
    public ChatRoom selectChartRoomByName(String name);

    public List<ChatRoom> selectChatRoomsByUid(Integer uid);

    public Boolean verifyChatRoom(Integer roomId, String password);

    public Integer updateByRoomIdAndUid(ChatRoom room, Integer uid);

    public Integer updateRoomValidByUid(Integer uid, Boolean valid);
}
